package com.codefish.framework.spring.context;

import java.util.EventObject;

/**
 * ApplicationContext事件实体类
 *
 * @author <a href='https://gitee.com/hzf2281'>codefish</a>
 * @version 1.0.0
 * @since 2022/10/10 下午 02:49
 */
public abstract class ApplicationEvent extends EventObject {

    /**
     * 事件发生时间戳
     */
    private final long timestamp;

    public ApplicationEvent(Object source) {
        super(source);
        this.timestamp = System.currentTimeMillis();
    }

    public long getTimestamp() {
        return this.timestamp;
    }

}
